package com.lavida.project.system.emp.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lavida.project.system.emp.domain.Empleave;
import com.lavida.project.system.emp.mapper.EmpleaveMapper;

@Service
public class EmpleaveServiceImpl implements EmpleaveService{
	@Autowired 
	private EmpleaveMapper empleaveMapper;
	@Override
	public Empleave selectEmpleaveById(Integer job_id) {
		// TODO Auto-generated method stub
		return empleaveMapper.selectEmpleaveById(job_id);
	}
	@Override
	public int insertEmpleave(Empleave empleave) {
		// TODO Auto-generated method stub
		return empleaveMapper.insertEmpleave(empleave);
	}
	@Override
	public int updateEmpleave(Empleave empleave) {
		// TODO Auto-generated method stub
		return empleaveMapper.updateEmpleave(empleave);
	}
	@Override
	public void deleteEmpleave(int[] job_ids) {
		// TODO Auto-generated method stub
		for(int i = 0;i<job_ids.length;i++) {
			empleaveMapper.deleteEmpleave(job_ids[i]);
		}
	}
	@Override
	public int updateEmpleavebf(Empleave empleave) {
		// TODO Auto-generated method stub
		return empleaveMapper.updateEmpleavebf(empleave);
	}
	@Override
	public List<Empleave> selectEmpleaveId(Integer job_id) {
		// TODO Auto-generated method stub
		return empleaveMapper.selectEmpleaveId(job_id);
	}
	@Override
	public int updateEmpleavebfs(Empleave empleave) {
		// TODO Auto-generated method stub
		return empleaveMapper.updateEmpleavebfs(empleave);
	}
	
}
